package mapper_k;

import org.apache.ibatis.annotations.Param;
import pojo_k.MainUser;

public interface MainUserMapper {

    //登录
    MainUser select(@Param("mainuserName") String mainuserName, @Param("mainuserPassword") String mainuserPassword);

    //注册
    void add(MainUser mainUser);

    //删除某个家庭用户
    void deleteByName(String homeuserName);
    //修改总金额
    void modifyTotal(float total);

    //根据用户名查询
    MainUser selectByName(String mainuserName);

    //修改账户名和密码
    void modify(@Param("mainuserNameBefore") String mainuserNameBefore,
                @Param("mainuserNameAfter") String mainuserNameAfter,
                @Param("mainuserPasswordAfter") String mainuserPasswordAfter);

    //查找密码
    String selectPassword(String mainuserName);

}
